Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Sun, 28 Aug 2022 03:48:25 +0000 (04:48 +0100)
committerRaspbian forward porter <root@raspbian.org>
Sun, 28 Aug 2022 03:48:25 +0000 (04:48 +0100)
commitd99b130851f08c70f001cfe6a73ed5f0d2839dbf
treebdfa5306d74ec2dedb4460eabf4ce96e93faf7c9
parenta0c4bf22d07dced35009c8bde4a1fac01a3dbd6f
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas